//
//  PersonalDataVC.m
//  leyitui
//
//  Created by 王大江 on 17/9/21.
//  Copyright © 2017年 xinleyi. All rights reserved.
//

#import "PersonalDataVC.h"
#import "RechargeVC.h"
#import "OutMoneyVC.h"
#import "PerfectDataVC.h"

@interface PersonalDataVC ()

@property (weak, nonatomic) IBOutlet UIView *btnView;


@end

@implementation PersonalDataVC

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"乐易推";
    
    [self setNaviBarStyle];
    
    self.navigationItem.leftBarButtonItem = [UIBarButtonItem itemWithTarget:self action:@selector(back) image:@"back" highImage:@"back"];
    self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"提现" style:UIBarButtonItemStyleDone target:self action:@selector(outMoney)];
    [self.navigationItem.rightBarButtonItem setTintColor:[UIColor whiteColor]];
    
}

#pragma mark 设置导航栏样式一体化
-(void)setNaviBarStyle {
    //去掉背景图片
    [self.navigationController.navigationBar setBackgroundImage:[[UIImage alloc] init] forBarMetrics:UIBarMetricsDefault];
    //去掉底部线条
    [self.navigationController.navigationBar setShadowImage:[[UIImage alloc] init]];
    self.navigationController.navigationBar.barStyle = UIStatusBarStyleLightContent;
}

- (void)back {
    //    [self setHidesBottomBarWhenPushed:NO];
        [self.navigationController popViewControllerAnimated:YES];
}

- (IBAction)rechargeMember:(id)sender {
    RechargeVC *rechargeVC = [[RechargeVC alloc] init];
    [self.navigationController pushViewController:rechargeVC animated:YES];
    
}

- (void)outMoney {
    OutMoneyVC *outMoneyVC = [[OutMoneyVC alloc] init];
    [self.navigationController pushViewController:outMoneyVC animated:YES];
    
}

- (IBAction)perfectDataBtnClick:(id)sender {
    PerfectDataVC *perfectDataVC = [[PerfectDataVC alloc] init];
    [self.navigationController pushViewController:perfectDataVC animated:YES];
    
}






@end
